1 1 1 1 1 1 (If option key down) 1 4 1 1 1 1 1 1 1 1 1 1
-1 -1 -1 -1 -1 -1 (If option key down) -1 12 -1 -1 9 -1 -1 -1 -1 -1 -1 -1
West North West North 1 0 -1 2 1 0 1 2 1 2 1 -2 1 1 -1 0 1 0 1 0 -1 0 -1 -2 -1 -2 -1
1 2 1 1 0 -1 0 0 0 2 0 -2 -1 -2 -1 1 0 -1
0 0 0 -1 -1 -1 0 0 0 0 -1 -1 -3 -3 -3 -1 -1 0 0 -1 -3 -3 -1 -3 -3 -1 0 -1 -3 -3 6 13 6 -3 -3 -1 -1 -3 -1 13 24 13 -1 -3 -1 -1 -3 -3 6 13 6 -3 -3 -1 0 -1 -3 -3 -1 -3 -3 -1 0 0 -1 -1 -3 -3 -3 -1 -1 0 0 0 0 -1 -1 -1 0 0 0
Make Binary - Converts the current grayscale image to binary by setting pixels that have been highlighted by either density slicing or by thresholding to black (255), and all other pixels to white (0).
Erode - Removes pixels from the edges of objects in a binary images, where contiguous black areas in the image are considered objects, and background is assumed to be white. A pixel is removed (set to white) if four or more of its eight neighbors are white. Erosion separates objects that are touching and removes isolated pixels.
Dilate - Adds pixels to the edges of objects in a binary images. A pixel is added (set to black) if four or more of its eight neighbors are black. Dilation connects discontinuous objects and fills in holes.
Open - Performs an erosion operation, followed by dilation, which smoothes objects and remove isolated pixels.
Close - Performs a dilation operation, followed by erosion, which smoothes objects and fill in small holes.
Set Count - Allows you to specify the number of adjacent background or foreground pixels necessary before a pixel is removed from or added to the edge of objects during erosion or dilation operations. The default is four.
Set Iterations - Allows you to specify the number of times erosion, dilation, opening, and closing are performed. The default is one.
Outline - Generates a one pixel wide outline of objects in a binary image.
Skeletonize - Repeatable removes pixels from the edges of objects in a binary image until they are reduced to single pixel wide skeletons. Type command-period to abort.
If Real Result is checked in the dialog box, calibrated pixel values are used and the result is stored, in a new window, as both 32-bit real and scaled 8-bit images. The 8-bit image is calibrated using a linear calibration function so that commands in Image that only "see" the 8-bit image (currently everything accept Arithmetic, Image Math and FFT) will use approximations of the real pixel values.
Add - Adds a constant to each pixel in the selection. Results greater than 255 are set to 255.
Subtract - Subtracts a constant from each pixel in the selection. Results less than 0 are set to 0.
Multiply - Multiplies each pixel in the selection by a constant. Results greater than 255 are set to 255.
Divide - Divides each pixel in the selection by a constant.
Log - Replaces each pixel (V) in the selection with ln(V) * 255.0 / ln(255.0), where ln(V) is the natural logarithm(loge) of V. The result is set to 0 if V is equal to 0.
AND, OR, XOR - Performs the selected Boolean operation on each pixel in the selection.
FFT - Computes the Fourier transform and displays the power spectrum. Requires a square, power of two size image or selection. The transformed frequency domain image is stored in a 32-bit real buffer attached to the window displaying the power spectrum. The only commands in Image that currently recognize this real image are "Inverse FFT", "Redisplay Power Spectrum" and "Image Math". All other commands "see" only the 8-bit power spectrum.
A helpful trick to remember when attempting to make power of two sized selections is to hold down the shift key, which forces the selection to be square. Or, even easier, use the macros for creating power of two sized selections in the "FFT Macros" file distributed with Image . The "FFT Macros" file also contains macros for high and low pass filtering.
Inverse FFT - Computes the inverse Fourier transform. You can filter or mask spots on the transformed (frequency domain) image and do an inverse transform to produce an image which only contains the frequencies selected or which suppresses the frequencies selected. Use Image 's editing and selections tools to draw black or white areas that mask portions of the transformed image. Black areas (pixel value=255) will pass the corresponding frequencies and white areas (pixel value=0) will filter out the corresponding frequencies. It is not, however, possible to both pass and filter during the same inverse transform. The "fft_example.bin" test image in the images directory on zippy.nimh.nih.gov provides an example of FFT editing and filtering.
Redisplay Power Spectrum - Recomputes the power spectrum from the real frequency domain image. This command allows you to start over if you mess up while editing the power spectrum display.
Swap Quadrants - Swaps quadrants 1 and 3 and quadrants 2 and 4 of the active image. Requires an 8-bit image whose height and width are equal and a power of two. Quadrant swapping is performed automatically every time a power spectrum is computed. In the normal, un-swapped, state, the power spectrum's central peak is distributed among the four corners of the image. While this is the format used in all computations, it doesn't correspond to nature's FFT analog, the diffraction pattern. This command is useful because cross and auto-correlation operations (the "cMul" operator in Image Math) result in inherently un-swapped space domain images, yet like power spectra, correlation functions are often displayed in quadrant swapped format. The Swap Quadrants command lets you choose the format you desire.
1D Horizontal - Rolls an arc (rolling arc) horizontally under each row (shrunk 2 or 4 times) of the image in order to remove the background.
1D Vertical - Rolls an arc (rolling arc) vertically under each column (shrunk 2 or 4 times) of the image in order to remove the background.
2D Rolling Ball - Rolls a patch from the top of a sphere (rolling ball) under every point in the image (shrunk 4 or 8 times) in order to find the background.
2D Remove Streaks - Gets rid of horizontal and vertical streaks as it removes background by calling 1D Horizontal and 1D Vertical consecutively.
Faster - When checked, the image is shrunk 8 times (instead of 4) for 2D rolling ball subtraction. When the ball radius is less than 15 the image is shrunk 4 times (instead of 2).
Set Radius - Allows you to set the rolling ball or disk radius. Generally, the disk/ball radius should be at least as large as the diameter of the largest object in the image that is not part of the background.